Payment Methods Biz API

(0 reviews)

GET- paymentMethod (Digital to SF)

GET

This operation retrieves list of payment methods of a billingAccountNumber from SF

Request

This section defines all the possible data structures sent by the client when consuming the method.

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (PR) identifying the business unit.Y

Security Headers

nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
nametypedescriptionrequired
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.N

Query Param

nametypedescriptionrequired
relatedParty.@typestringtype of the relatedParty to search. Could be different, depending on the use case.
For Peacock Mobile Project the value is channel".
Y
relatedParty.namestringThe name of the relatedParty
For Peacock Mobile Project the values must be Digital/IVR
Y
account.idstringValue of Billing Account Number
Conditional mandatory. either Billing Account Number or MSISDN should be passed as queryparam
N*
account.relatedParty.idstringValue of MSISDN
Conditional mandatory. either Billing Account Number or MSISDN should be passed as queryparam
N*

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.

Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - list request processed successfully, response body contains array of entities corresponding to the requested resource.

[
    {
        "id":"PM-a6I3K0000008znQUAQ",
        "token": "cGF5bWVudG1ldGhvZF9jY181a25obmtzZg",
        "@type":"Tokenised Credit Card",
        "@baseType": "paymentMethod",
        "account": [
            {
                "id": "S-10008",
                "@type": "BillingAccount",
                "ratingType":"postpaid",
                "autopayEnabled": "true"
            }
        ],
        "relatedParty":[{

                "name": "BrainTreeToken",
                "@type": "paymentGatewayType"
        }],
        "autopayEnabled": "true"
    }
]
Definitions

Each of the response parameters is detailed.

nametypedescriptionrequiredpossible values
idstringpaymentMethod idYPM-a6I3K0000008znQUAQ,2,13
tokenstringBraintree tokenYcGF5bWVudG1ldGhvZF9jY19i
@typestringPayment Method Type.Eg:Tokenised Credit Card,Credit Card,Electronic Cheque (ACH),Direct Debit,Tokenised Debit CardYTokenised Credit Card
, Credit Card,
Electronic Cheque (ACH),Direct Debit,Tokenised Debit Card
@baseTypestringindicates the baseType of objectYPaymentMethod
accountarrayY
account.idstringBilling Account Number valueYPM-a6I63000000DZmrEAG
account.@typestringtype of account.here it is Billing AccountYBillingAccount
account.ratingTypeStringIndicated whether the account follows a specific payment option such as prepaid or postpaidYprepaid or postpaid
account.autopayEnabledstringindicates if the billing account supports automatic paymentsYtrue,false
relatedPartyarrayY
relatedParty.namestringName of the relatedPartyYBrainTreeToken
relatedParty.@typestringType of the relatedPartyYpaymentGatewayType
autopayEnabledstringIndicate that payment method is enabled or not for Automatic PaymentsYtrue,false

Reviews